package com.zy.dao;

import com.zy.entity.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface MessageMapper
{

    public void addMessage(@Param("message") Message message);

    public List<Map> findMessageListByFromToId(@Param("fromToId") String fromToId,@Param("begin") int begin,@Param("pageSize") int pageSize);

    public int findMessageCountByFromToId(@Param("fromToId") String fromToId);

}
